#ifndef KMNETMSGOUT_H
#define KMNETMSGOUT_H

#include <string>

class KMNetMsgOut
{
public:
    KMNetMsgOut();
    virtual ~KMNetMsgOut();

    void writeId(const int &id);
    void writeString(const std::string &str);
    void write2Bytes(const int &val);

    char *getData() const;
    unsigned int getLength() const ;

protected:
private:
    void expand(unsigned int bytesToAdd);
    char *mData;
    unsigned int mDataSize;
    unsigned int mPos;
};

#endif
